package cn.factorybox.model.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;

import java.io.Serializable;
import java.util.Date;

/**
 * @author flypig
 * @version 1.0
 * @date 2020-11-23 13:44
 */
public class FeedBack implements Serializable {

    private static final long serialVersionUID = 1L;

    private String id;      //主键id

    @JsonProperty("username")
    private String userName;    // 反馈者名称

    @JsonInclude(JsonInclude.Include.NON_NULL)
    private String userId;  //反馈者id

    @JsonInclude(JsonInclude.Include.NON_NULL)
    @JsonProperty("master")
    private String masterId;   //被反馈者id

    private String content;     //反馈内容

    @JsonProperty("date")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date fCreateTime;       // 创建日期

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getMasterId() {
        return masterId;
    }

    public void setMasterId(String masterId) {
        this.masterId = masterId;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Date getfCreateTime() {
        return fCreateTime;
    }

    public void setfCreateTime(Date fCreateTime) {
        this.fCreateTime = fCreateTime;
    }

    @Override
    public String toString() {
        return "FeedBack{" +
                "id='" + id + '\'' +
                ", userId='" + userId + '\'' +
                ", master_id='" + masterId + '\'' +
                ", content='" + content + '\'' +
                ", fCreateTime=" + fCreateTime +
                '}';
    }
}
